package com.github.chirspan.xaas.cfg.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.chirspan.xaas.mybatis.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @Author: chenpan
 * @Date: 2021-04-07 18:24:47
 * @Description: 系统操作日志
 */
@TableName(value = "xaas_cfg_api_log")
@Data
@ToString(callSuper = true)
public class CfgApiLog extends BaseModel {

    @ApiModelProperty(value = "日志类型")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "日志标题")
    @TableField(value = "title")
    private String title;

    @ApiModelProperty(value = "ip地址")
    @TableField(value = "remote_addr")
    private String remoteAddr;

    @ApiModelProperty(value = "用户代理")
    @TableField(value = "user_agent")
    private String userAgent;

    @ApiModelProperty(value = "请求uri")
    @TableField(value = "request_uri")
    private String requestUri;

    @ApiModelProperty(value = "请求方法")
    @TableField(value = "method")
    private String method;

    @ApiModelProperty(value = "数据")
    @TableField(value = "params")
    private String params;

    @ApiModelProperty(value = "执行时间")
    @TableField(value = "time")
    private Long time;

    @ApiModelProperty(value = "异常信息")
    @TableField(value = "exception")
    private String exception;

    @ApiModelProperty(value = "应用标识")
    @TableField(value = "service_id")
    private String serviceId;

}